package com.park.dao.mapper.user;

import com.park.dao.base.TKMapper;
import com.park.entity.user.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Description 用户Mapper
 * @Author zhanghaiwen
 * @Date 2020/1/9 11:24
 * @Version 6.1.1
 **/
@Component
public interface UserMapper extends TKMapper<UserInfo> {


    List<UserInfo> getALLUser();

    /**
     * 根据用户OpenId获取用户信息
     * @param openid
     * @return
     */
    UserInfo getUserInfoByOpenId(@Param("openid") String openid);

}
